import { myget, mypost } from './index'

// 获取文章列表
export const getCategoricallist = (data) => {
	return myget('/categorical/list', data)
}
export const getCategoricallistAll = (data) => {
	return myget('/categorical/listAll', data)
}
// 修改文章
export const UpdateCategorical = (data) => {
	return mypost('/categorical/update', data)
}
// 模糊查询文章
export const SearchCategorical = (data) => {
	return myget('/categorical/findLike', data)
}
// 添加文章
export const addCategorical = (data) => {
	return mypost('/categorical/add', data)
} // 批量添加
export const addCategoricalList = (data) => {
	return mypost('/categorical/updateList', data)
}
// 删除文章
export const delCategorical = (data) => {
	return mypost('/categorical/del', data)
}
